import { createStore, combineReducers } from 'redux';

// 导入 具体的reducer
import { counter } from './reducers/counter';
// 另外一个模块
import { todos } from './reducers/todos';

// root 根 reducer
const rootReducer = combineReducers({
  counter,
  todos,
});

// 创建store，数据总管
export const store = createStore(rootReducer);
